#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__author__ = "Administrator"
__name__="record"
__date__="2016/7/7"
__time__="10:08"
"""
from utility.sql_helper import mysql_helper
class Record(object):
    def __init__(self):
        self.__helper=mysql_helper()
    def Get_record(self,id):
        sql = "select * from record where id=%s;"
        parms = (id,)
        return self.__helper.get_money(sql,parms)
    def Insert_record(self,id,content,time_stamp):
        sql = "insert into record(id,content,time_stamp) values(%s,%s,%s)"
        parms = (id,content,time_stamp)
        return self.__helper.insert_one(sql,parms)
